# include <cstdio>
# include <iostream>
#define MAXN 200010
using namespace std;

int n, k, q;
int c[MAXN], a[MAXN], b[MAXN], mx;

int main() {
    freopen("coffee.in", "r", stdin);
    freopen("coffee.out", "w", stdout);
    // freopen("in", "r", stdin);
    ios::sync_with_stdio(false);
    cin >> n >> k >> q;
    for(int i = 1; i <= n; i++) {
        int s, t;
        cin >> s >> t;
        c[s]++, c[t + 1]--;
    }
    for(int i = 1; i <= q; i++) {
        cin >> a[i] >> b[i];
        mx = max(b[i], mx);
    }
    for(int i = 1; i <= mx; i++) {
        c[i] += c[i - 1]; // c[i] 为i点的被选量
    }
    for(int i = 1; i <= mx; i++) {
        if(c[i] >= k) c[i] = 1;
        else c[i] = 0;
        c[i] += c[i - 1]; // c[i] 为被选量的前缀和
    }
    for(int i = 1; i <= q; i++) {
        cout << c[b[i]] - c[a[i] - 1] << endl;
    }
}